aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/blog/page/[number].tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-11-29 12:28:03 +0100
committerArmand Philippot <git@armandphilippot.com>2023-11-29 13:47:07 +0100
commitdfa894b76ee3584bf169710c78c57330c5d6ee67 (patch)
tree41380a93e2838452236a720f27f85fb14502f56a /src/pages/blog/page/[number].tsx
parent29a1dec4de0aa7ba64ef068a83b1b8589fbc3ad0 (diff)
fix(pages,services): make thematics & topics pages usable again
When I refactored the fetchers and convertors in #f111685 I forgot to convert WPThematicPreview and WPTopicPreview so the thematics and topics pages was broken. I also: * removed the ToC added by error in #70b4f63 * fix heading styles * fix website url in topics pages
Diffstat (limited to 'src/pages/blog/page/[number].tsx')
-rw-r--r--src/pages/blog/page/[number].tsx11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/pages/blog/page/[number].tsx b/src/pages/blog/page/[number].tsx
index d6071d1..35d4bad 100644
--- a/src/pages/blog/page/[number].tsx
+++ b/src/pages/blog/page/[number].tsx
@@ -20,7 +20,8 @@ import {
PageSidebar,
} from '../../../components';
import {
- convertTaxonomyToPageLink,
+ convertWPThematicPreviewToPageLink,
+ convertWPTopicPreviewToPageLink,
fetchLastPostCursor,
fetchPostsCount,
fetchPostsList,
@@ -247,7 +248,9 @@ const BlogPage: NextPageWithLayout<BlogPageProps> = ({
{thematicsListTitle}
</Heading>
}
- items={getLinksItemData(thematicsList.map(convertTaxonomyToPageLink))}
+ items={getLinksItemData(
+ thematicsList.map(convertWPThematicPreviewToPageLink)
+ )}
/>
<LinksWidget
heading={
@@ -255,7 +258,9 @@ const BlogPage: NextPageWithLayout<BlogPageProps> = ({
{topicsListTitle}
</Heading>
}
- items={getLinksItemData(topicsList.map(convertTaxonomyToPageLink))}
+ items={getLinksItemData(
+ topicsList.map(convertWPTopicPreviewToPageLink)
+ )}
/>
</PageSidebar>
</Page>